package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;


@Data
@TableName(value = "XY_EVENT_STATUS")
@KeySequence(value = "SYSTEM_ALL_SEQ")
public class XyEventStatus extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @TableId(type = IdType.INPUT)
    private Long objectRrn;

    /** 事件状态（0正常 1停用） */
    @Excel(name = "事件状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 事件名称 */
    @Excel(name = "事件名称")
    private String eventName;

    /** 源状态大类 */
    @Excel(name = "源状态大类")
    private String sourceStatusCategory;

    /** 源状态 */
    @Excel(name = "源状态")
    private String sourceStatus;

    /** 目标状态 */
    @Excel(name = "目标状态")
    private String targetStatus;

    /** 目标状态大类 */
    @Excel(name = "目标状态大类")
    private String targetStatusCategory;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("objectRrn", getObjectRrn())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("eventName", getEventName())
            .append("sourceStatusCategory", getSourceStatusCategory())
            .append("sourceStatus", getSourceStatus())
            .append("remark", getRemark())
            .append("targetStatus", getTargetStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("targetStatusCategory", getTargetStatusCategory())
            .toString();
    }
}
